/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.domain;

import com.yunqian.model.BaseModel;
import com.yunqian.redot.constant.Tables;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 门票管理
 *
 * @author zsy
 * 2018-09-29 15:55:11
 */
@Data
@Entity
@Table(name = Tables.TICKET)
@EqualsAndHashCode(callSuper = false)
public class Ticket extends BaseModel<Long>{

    /**
     * 状态 1-正常 2-删除
     */
    @Column(name = "status")
    private Integer status = 1;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 排序号
     */
    @Column(name = "sort_num")
    private Integer sortNum;
    /**
     * 类型 1-基础票 2-套票
     */
    @Column(name = "type")
    private Integer type;
    /**
     * 编号
     */
    @Column(name = "code")
    private String code;
    /**
     * 名称
     */
    @Column(name = "title")
    private String title;
    /**
     * 简介
     */
    @Column(name = "description")
    private String description;
    /**
     * 票价
     */
    @Column(name = "price")
    private BigDecimal price;
    /**
     * 套票包含的基础票数组字符串
     */
    @Column(name = "relate_ticket_arr")
    private String relateTicketArr;
    /**
     * 图Key
     */
    @Column(name = "img_key")
    private String imgKey;
    /**
     * 访问链接
     */
    @Column(name = "link_url")
    private String linkUrl;
    /**
     * 票类编号
     */
    @Column(name = "ticket_type_code")
    private String ticketTypeCode;
    /**
     * 详情介绍
     */
    @Column(name = "details")
    private String details;
    /**
     * 库存
     */
    @Column(name = "stock")
    private Integer stock = 0;

    public Ticket() {
    }

}
